package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.Config;
import com.weixing.mall.provider.model.query.SysCfgQuery;
import com.weixing.mall.provider.api.model.vo.SysConfigVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 系统设置 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface ConfigMapper extends BaseMapper<Config> {

    void changeEnable(Long id, Integer value);


    Integer selectCfgTypeByName(String name);

    IPage<SysConfigVo> selectOfPage(@Param("pg") Page page, @Param("qs") SysCfgQuery cfgQuery);

    SysConfigVo selectVoByCfgCode(String cfgCode);
}
